import React, { Component } from 'react'
import { Table, Tag } from 'antd';

const columns = [{
    title: '姓名',
    dataIndex: 'name',
}, {
    title: '年龄',
    dataIndex: 'age',
}, {
    title: '地址',
    dataIndex: 'address',
}, {
    title: '操作',
    dataIndex: 'id',
}]

// eslint-disable-next-line
class TableList extends Component {
    render() {
        const { userData } = this.props;
        const { loading, list, total, current } = userData;

        return (
            <Table
                rowKey="id"
                columns={columns}
                loading={loading}
                dataSource={[...list]}
            />
        )
    }
}

export default TableList;
